package cn.hls.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.hls.dao.UserDao;
import cn.hls.entity.User;
import cn.hls.entity.vo.PageInfo;
import cn.hls.service.UserService;

/**
 * @fileName: UserServiceBean.java
 * @descrption: 用户Service接口实现类
 * @author : yinghui.zhang
 * @Email: uuhui@163.com
 * @date 2015-4-9
 * @version 1.0
 */
@Service("userService")
public class UserServiceBean extends BaseServiceBean<User> implements
		UserService {
	@Resource(name = "userDaoImpl")
	private UserDao userDao;


	@Override
	public PageInfo<User> loadUserInfo(PageInfo<User> paramPageInfo, User user)
			throws Exception {
		return userDao.loadUsers(paramPageInfo, user);

	}

	@Override
	public User login(String loginName) throws Exception {
		return userDao.login(loginName);
	}

	@Override
	public boolean updatePwd(User entity) throws Exception {
		return userDao.updatePwd(entity);
	}
}
